<?xml version="1.0" encoding="UTF-8" ?>
<%@page import="com.raquel.onceuponatime.Tale"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Update Story</title>
</head>
<body>
	<%
		Tale tale= (Tale)request.getAttribute("tale");
	%>
	
	<form name="new" method="post" action="New">
	<fieldset>
		<input type="hidden" name="id" id="id" value="<%=tale.getId() %>"></input>
		<label for="title">Title: </label>
		<input type="text"name="Title" id="title" value="<%=tale.getTitle() %>"/>
		<br/>
		<label for="tale">Tale: </label>
		<textarea name="tale" id="tale value="<%=tale.getTale() %>"></textarea>
		<br/>
		<input type="submit" name="send" id="send" value="Update"/>
	</fieldset>
	</form>
	<%@include file="header.jsp" %>
</body>
</html>